Skip to content

Add blog subpage with example post and nav link#10

Merged
hgarfer merged 4 commits intomainfrom
copilot/add-blog-subpage-link
Apr 7, 2026
Merged

Add blog subpage with example post and nav link#10
hgarfer merged 4 commits intomainfrom
copilot/add-blog-subpage-link

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 1, 2026

Adds a /blog section to the site with a listing page, per-post layout, and an initial example post. A "Blog" nav link is added to the home page header.

Changes

  • _layouts/home.html – Added "Blog" nav link alongside existing "Contact" link; updated .site-nav to flexbox for multi-link spacing
  • blog.html – Blog index using site.posts; renders title, date, and truncated excerpt per post
  • _layouts/post.html – Post layout with date in header and nav back to Home/Blog
  • _posts/2026-03-01-hello-world.md – Example "Hello World" post
  • _sass/main.scss – Blog-specific styles: .blog-list, .blog-post-preview, .blog-post-title, .blog-post-meta, .blog-post-excerpt, .blog-post-content
Original prompt

Create a branch called feature/blog, in that branch I want to add a blog subpage to the existing site, please create a link to it from the main page and an example blog post


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: hgarfer <611512+hgarfer@users.noreply.github.com>
Copilot AI changed the title [WIP] Add blog subpage and link from main page Add blog subpage with example post and nav link Mar 1, 2026
@hgarfer hgarfer marked this pull request as ready for review April 7, 2026 23:25
@hgarfer hgarfer self-requested a review as a code owner April 7, 2026 23:25
Copilot AI review requested due to automatic review settings April 7, 2026 23:25
@hgarfer hgarfer merged commit 7cc72a2 into main Apr 7, 2026
4 checks passed
@hgarfer hgarfer deleted the copilot/add-blog-subpage-link branch April 7, 2026 23:26
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new blog section to the Jekyll site, including an index page, a dedicated post layout, styling, and an initial example post, plus a navigation link from the home page.

Changes:

  • Added blog.html index page that lists site.posts with title/date/excerpt.
  • Added a post layout and an example post under _posts/.
  • Updated navigation styling and introduced blog-specific SCSS styles.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
blog.html New blog index page rendering a list of posts.
_layouts/home.html Adds “Blog” link to the home page header nav.
_layouts/post.html New layout for individual blog posts with header/meta and back-nav.
_posts/2026-03-01-hello-world.md Example “Hello World” blog post content.
_sass/main.scss Updates .site-nav to flex and adds blog list/post styling.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to +4
---
layout: default
title: Blog
---
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description says this adds a /blog section, but this page will be served at /blog.html unless you set an explicit permalink. Consider adding permalink: /blog/ (or moving to blog/index.html) so the blog lives at /blog as described, and update internal links accordingly.

Copilot uses AI. Check for mistakes.
Comment on lines 8 to 10
<nav class="site-nav">
<a href="{{ '/blog.html' | relative_url }}" class="nav-link">Blog</a>
<a href="{{ '/contact.html' | relative_url }}" class="nav-link">Contact</a>
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This link points to /blog.html. If the intent is a /blog section (per PR description), update this href to the canonical /blog/ route (and ensure the blog page has a matching permalink).

Copilot uses AI. Check for mistakes.
Comment on lines +9 to +12
<nav class="site-nav">
<a href="{{ '/' | relative_url }}" class="nav-link">Home</a>
<a href="{{ '/blog.html' | relative_url }}" class="nav-link">Blog</a>
</nav>
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This link points to /blog.html. If the blog index is intended to live at /blog/, update this href to match the blog page permalink so post pages link back correctly.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants